package ad.android.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "tbl_apps_file", catalog = "adproject")
public class AppsFile implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 642919651163527347L;
	
	
	private Long id;
	/**
	 * 真实文件名
	 */
	private String realName;
	/**
	 * 上传后服务器文件名称
	 */
	private String fileName;
	/**
	 * 文件大小
	 */
	private String fileSize;
	/**
	 * 上传路径
	 */
	private String filePath;
	/**
	 * 虚拟路径
	 */
	private String vitualPath;
	/**
	 * 上传时间
	 */
	private Date uploadTime;
	/**
	 * 修改时间
	 */
	private Date updateTime;
	/**
	 * 是否通过审核
	 */
	private Integer isCheck;	//0未审核 1审核通过
	/**
	 * 所属开发者
	 */
	private Long userId;		
	/**
	 * 所在应用id
	 */
	private Long applicationId;
	/**
	 * 版本
	 */
	private String version;
	@Column(name = "APP_ID")
	public Long getApplicationId() {
		return applicationId;
	}
	public void setApplicationId(Long applicationId) {
		this.applicationId = applicationId;
	}
	@Column(name = "FILE_NAME",length=255)
	public String getFileName() { 
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	@Column(name = "FILE_PATH",length=255)
	public String getFilePath() {
		return filePath;
	}
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}
	@Column(name = "FILE_SIZE",length=100)
	public String getFileSize() {
		return fileSize;
	}
	public void setFileSize(String fileSize) {
		this.fileSize = fileSize;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name = "ID", unique = true, nullable = true)
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Column(name = "ISCHECK",length=10)
	public Integer getIsCheck() {
		return isCheck;
	}
	public void setIsCheck(Integer isCheck) {
		this.isCheck = isCheck;
	}
	@Column(name = "REAL_NAME",length=255)
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	@Column(name = "UPDATE_TIME")
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	@Column(name = "UPLOAD_TIME")
	public Date getUploadTime() {
		return uploadTime;
	}
	public void setUploadTime(Date uploadTime) {
		this.uploadTime = uploadTime;
	}
	@Column(name = "USER_ID")
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	@Column(name = "VITUAL_PATH",length=255)
	public String getVitualPath() {
		return vitualPath;
	}
	public void setVitualPath(String vitualPath) {
		this.vitualPath = vitualPath;
	}
	@Column(name = "VERSION",length=255) 
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	
	
}
